<template>
  <div>
    <!-- 退出登录 -->
    <div>
      <el-row>
        <el-button type="primary" @click="outlogin">退出登录</el-button>
      </el-row>
    </div>

  </div>
</template>

<script>
export default {
  data () {
    return {}
  },
  methods: {
    outlogin: function () {
      console.log(this)
      window.sessionStorage.clear()
      this.$router.push('/login')
    }
  }
}
</script>

<style lang="less" scoped>
</style>
